// 鉴权Token
export class AuthAccess {
	static success(config){
		// 存在设置Token
		if (uni.getStorageSync('TOKEN') || uni.getStorageSync('TOKEN_KEY') ) {
			config.header['Authorization-Key'] = uni.getStorageSync('TOKEN_KEY');
			config.header['Authorization'] = uni.getStorageSync('TOKEN');	
		}
		return config
	}
	static fail(error) {
		console.log(error)
		return Promise.reject(error)
	}
}
